package com.itheima.leyou.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 校验服务端发送的消息
     * @param clientId
     * @param secret
     * @return
     */
    @GetMapping("/auth/client")
    String checkClient(
            @RequestParam("clientId")String clientId,
            @RequestParam("secret")String secret);
}
